{{#set "target_unsupported"}}
    echo ERROR: set `probe.bmp.device` to a supported value to correctly initialize debug\n
    echo registers\n
{{/set}}

{{#set "target_gdb"}}
    {{get "target_unsupported"}}
{{/set}}

{{#set "target_swo"}}
    {{get "target_unsupported"}}
{{/set}}

{{#if (or (or (or (or (or (or (or (or (or (or (or (or (or
      (or (or (or (or (or (or (or (or (or (or (or (or (or
      (eq config.probe.bmp.device "stm32f100")
      (eq config.probe.bmp.device "stm32f101"))
      (eq config.probe.bmp.device "stm32f102"))
      (eq config.probe.bmp.device "stm32f103"))
      (eq config.probe.bmp.device "stm32f107"))
      (eq config.probe.bmp.device "stm32f401"))
      (eq config.probe.bmp.device "stm32f405"))
      (eq config.probe.bmp.device "stm32f407"))
      (eq config.probe.bmp.device "stm32f410"))
      (eq config.probe.bmp.device "stm32f411"))
      (eq config.probe.bmp.device "stm32f412"))
      (eq config.probe.bmp.device "stm32f413"))
      (eq config.probe.bmp.device "stm32f427"))
      (eq config.probe.bmp.device "stm32f429"))
      (eq config.probe.bmp.device "stm32f446"))
      (eq config.probe.bmp.device "stm32f469"))
      (eq config.probe.bmp.device "stm32l4x1"))
      (eq config.probe.bmp.device "stm32l4x2"))
      (eq config.probe.bmp.device "stm32l4x3"))
      (eq config.probe.bmp.device "stm32l4x5"))
      (eq config.probe.bmp.device "stm32l4x6"))
      (eq config.probe.bmp.device "stm32l4r5"))
      (eq config.probe.bmp.device "stm32l4r7"))
      (eq config.probe.bmp.device "stm32l4r9"))
      (eq config.probe.bmp.device "stm32l4s5"))
      (eq config.probe.bmp.device "stm32l4s7"))
      (eq config.probe.bmp.device "stm32l4s9")) }}
{{> bmp/target/stm32.gdb }}
{{/if}}
